From 5b0e5c412f6c2c6d4f95d7fc791418f2dc03d521 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20H=C3=A4rdeman?= Date: Sat, 13 Dec 2025 13:34:54 +0100 Subject: [PATCH] router: remove some log spam in send_router_advert() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Both these messages would otherwise be printed on each RA. Especially the second one merely means that we're follwing the cfg explicitly set by the user, so they're not very likely to be interested to know that we're doing what we've been told to do. Signed-off-by: David Härdeman Link: https://github.com/openwrt/odhcpd/pull/358 Signed-off-by: Álvaro Fernández Rojas --- src/router.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/router.c b/src/router.c index b756cf6..3c32a11 100644 --- a/src/router.c +++ b/src/router.c @@ -1017,16 +1017,16 @@ static int send_router_advert(struct interface *iface, const struct in6_addr *fr uint32_t valid_lt; if (addr->dprefix_len >= 64 || addr->dprefix_len == 0 || addr->valid_lt <= (uint32_t)now) { - info("Address %s (dprefix %d, valid-lifetime %u) not suitable as RA route on %s", - inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)), - addr->dprefix_len, addr->valid_lt, iface->name); + debug("Address %s (dprefix %d, valid-lifetime %u) not suitable as RA route on %s", + inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)), + addr->dprefix_len, addr->valid_lt, iface->name); continue; } if (ADDR_MATCH_PIO_FILTER(addr, iface)) { - info("Address %s filtered out as RA route on %s", - inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)), - iface->name); + debug("Address %s filtered out as RA route on %s", + inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)), + iface->name); continue; } -- 2.30.2